<%@page import="com.saturn.website.Article"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>人员招聘</title>
</head>
<body>
	<%@ include file="include/top.jsp" %>
	<div id="navigate">
		<p>二级导航 ：
		<%
			String cid = request.getParameter("cid");
			String aboutId = request.getParameter("aboutId");
			
			List children = Content.getChildren(cid);
		
			if (!children.isEmpty()) {
				for (int i = 0; i < children.size(); ++i) {
					Content child = (Content)children.get(i);
					if ("显示".equals(child.getHasShowName())) {
						if (aboutId == null) {
							aboutId = ((Content)children.get(i)).getId();
						}
					%>
					<a href="<%=child.getPath()+"?cid=" + cid + "&aboutId=" + child.getId()%>"><%out.print(child.getName());%></a><%=aboutId.equals(child.getId()) ? "(当前页)" : ""%> | 
					<% 
					}
				}
			}
		%>
		</p>
	</div>
	<div id="center">
		<%
			List articles = Article.getByCid(aboutId);
			String title = "";
			String text = "";
			
			if (!articles.isEmpty()) {
				Article article = (Article)articles.get(0);
				title = article.getTitle();
				text = article.getText();
			}
		%>
		<p>人员招聘</p>
		<p>题目：<%=title%></p>
		<p>内容：</p>
		<p><textarea cols="50" rows="5"><%=text%></textarea></p>
	</div>
	<%@ include file="include/foot.jsp" %>
</body>
</html>